﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="uservisitloggrid.aspx.cs" Inherits="LTJ.WebPage.SystemManage.loginfo.uservisitloggrid" %>
<%@ Import Namespace="LTJ.Common"%>
<%@ Register TagPrefix="dyj" Namespace="LTJ.Control" Assembly="LTJ.Control" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>用户搜索日志列表</title>
    <link href="../css/comm.css" type="text/css" rel="stylesheet" />
    <link href="../css/lightview.css" type="text/css" rel="stylesheet" />
    <link href="../css/calendar.css" type="text/css" rel="stylesheet" />
    <script language="javascript" type="text/javascript" src="../js/common.js"></script>
    <script src="../js/jquery.js" type="text/javascript"></script>
    <script src="../js/prototype.js" type="text/javascript"></script>
    <script src="../js/scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="../js/lightview.js" type="text/javascript"></script>
    <script src="../js/effects.js" type="text/javascript"></script>
    <script type="text/javascript">
        function Check(form, checked) {
            CheckByName(form, 'cid', checked);
            checkedEnabledButton(form, 'cid', 'del');
        }
        function formcheck() {
            if (event.keyCode == 13) {
                document.getElementById("check").focus();
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="adnr">
        <fieldset style="border: 1px solid #ccc; margin-bottom: 8px; padding:4px 30px; padding-bottom:10px; text-align:center;">
            <legend id="opt" style="font-weight:bold; line-height:45px; padding-left:60px;background: url(../images/icon/icon19.jpg) no-repeat 6px 50%;">条件检索</legend>
	    <p class="adnrt">
		    登录名：<input onkeydown="formcheck()" name="lname" class="soon" type="text" style="width:200px;" />
            &nbsp;&nbsp;时段：<dyj:Calendar id="starttime" runat="server" ReadOnly="true" ScriptPath="../js/calendar.js"></dyj:Calendar>
                                至
			                    <dyj:Calendar id="endtime" runat="server" ReadOnly="true" ScriptPath="../js/calendar.js"></dyj:Calendar>
            &nbsp;&nbsp;<dyj:Button runat="server" ID="check" Text="查询" ButtonImgUrl="../images/search.gif"/>
	    </p>
        </fieldset>
	    <ul class="adnrt mar_top">
		    <dyj:Button ID="del" runat="server" Text="删除日志" ButtonImgUrl="../images/del.gif" Enabled="false"/>&nbsp;&nbsp;
	    </ul>
	    <div class="adnr3">
        <dyj:datagrid id="DataGrid1" runat="server" PageSize="10">
	       <Columns>
            <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form,this.checked)' type='checkbox' name='chkall' id='chkall' />">
                <HeaderStyle Width="20px" />
                <ItemTemplate>
                    <input id="cid" type="checkbox" onclick="checkedEnabledButton(form, 'cid', 'del')" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>" name="cid">
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="lname" HeaderText="用户"></asp:BoundColumn>
	        <asp:BoundColumn DataField="visitip" HeaderText="访问IP"></asp:BoundColumn>
            <asp:BoundColumn DataField="cname" HeaderText="所属公司"></asp:BoundColumn>
            <asp:BoundColumn DataField="createdate" HeaderText="操作时间"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="搜索类型">
                <ItemTemplate>
                <%#DataBinder.Eval(Container,"DataItem.stype").ToString()=="0"?"整柜搜索":""%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="actions" HeaderText="操作"></asp:BoundColumn>
            <asp:BoundColumn DataField="searchcode" HeaderText="线路编号"></asp:BoundColumn>
            <asp:BoundColumn DataField="dport_key" HeaderText="目的港关键字"></asp:BoundColumn>
            <asp:BoundColumn DataField="lport_key" HeaderText="起运港关键字"></asp:BoundColumn>
            <asp:BoundColumn DataField="boatname" HeaderText="船公司"></asp:BoundColumn>
            <asp:BoundColumn DataField="routename" HeaderText="航线"></asp:BoundColumn>
            <asp:BoundColumn DataField="others" HeaderText="其他"></asp:BoundColumn>
          </Columns>
	    </dyj:datagrid>
	    </div>
	    <i class="tp"></i><i class="bt"></i>
    </div>
    <button id="reclick" runat="server" style="display:none"></button>
    </form>
</body>
</html>